/*----------------------------------------------------------------------
  - File name      : dev_key_scan.h
  - Author         : Quark Team
  - Update date    : 2020-08-28                   
  -	Copyright      : Gevico Electronic studio   
  - Module comments: Header file of Key scan module.
-----------------------------------------------------------------------*/
#ifndef __GEVICO_KEYSCAN_H_
#define __GEVICO_KEYSCAN_H_
/*-----------------------------------------------------------------------
|                               INCLUDES                                |
-----------------------------------------------------------------------*/
#include "STC8AX_GPIO.h"
#include "STC8AX_TYPE.h"
#include "STC8AX_CORE.h"
/*-----------------------------------------------------------------------
|                                 DATA                                  |
-----------------------------------------------------------------------*/

/*--------------------------------------------------------
| @Description: Key state enum                           |
--------------------------------------------------------*/

typedef enum 
{
  KEY_State_One = 0,
  KEY_State_Mul = !KEY_State_One
} KEY_STATE;

/*-----------------------------------------------------------------------
|                             API FUNCTION                              |
-----------------------------------------------------------------------*/

FSCSTATE Key_GPIO_Init(void);

FSCSTATE Key_Scan_P0_One(KEY_STATE State,uint8 *BackDat);
FSCSTATE Key_Scan_P1_One(KEY_STATE State,uint8 *BackDat);
FSCSTATE Key_Scan_P2_One(KEY_STATE State,uint8 *BackDat);
FSCSTATE Key_Scan_P3_One(KEY_STATE State,uint8 *BackDat);
FSCSTATE Key_Scan_P4_One(KEY_STATE State,uint8 *BackDat);
FSCSTATE Key_Scan_P5_One(KEY_STATE State,uint8 *BackDat);
FSCSTATE Key_Scan_P6_One(KEY_STATE State,uint8 *BackDat);
FSCSTATE Key_Scan_P7_One(KEY_STATE State,uint8 *BackDat);

#endif
/*-----------------------------------------------------------------------
|          END OF FLIE        (C) COPYRIGHT Gevico Electronics          | 
-----------------------------------------------------------------------*/

